<%@page import="java.util.List,com.crm.entity.Parts,com.crm.entity.Quotation,com.crm.entity.Business,com.crm.beans.NewQuotVO" %>
<% String srname=(String)request.getAttribute("sourcename");
String supname=(String)request.getAttribute("suppname");
String unitprice=(String)request.getAttribute("uprice");
String terms=(String)request.getAttribute("tnc");
List<Quotation> prequot =(List<Quotation>)request.getAttribute("listquot");
Business bus=(Business)request.getAttribute("business");
%>
<table width="100%">
  <tr>  
<td align="center" width="100%">

<div id="historyDiv"  title="Click Here To Open/Close The History" align="center"  style="color:#F6871F ; font-weight: bold; font-size:16px">Quotations History</div>
<table>
<tr><td width=100%>
<table  id="tableId">
<%if(prequot.size()!=0&&prequot!=null){
	for(int i=0;i<prequot.size();i++)
	{%>
<tr><td>Click Here To Print This Quotation  <a  class="linkclass" href="#"  onclick="open_new_window('<%=application.getContextPath() %>/newquot/get_history.do?quotid=<%=prequot.get(i).getQuotno()%>')" ><%=prequot.get(i).getQuotno()%></a></td></tr>
<%}
}%>
</table>
</td></tr>
</table>
</td>
</tr>
</table>

      <script type="text/javascript">
      $("#tAndCButton").click(function(){
    	  $("#terms").toggle();
      });
      $("#historyDiv").click(function(){
    	  $("#tableId").toggle();
      });
      
      </script>
<script>
function open_new_window(url) {
	  window.open(url,"Printing Your Quotation","width=500,height=300,left=200,top=10");
	}
</script>


      